import axios from '../axios'

/*
 * 用户管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/busIntellectual/save',
        method: 'post',
        data
    })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/busIntellectual/delete',
        method: 'post',
        data
    })
}
// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/busIntellectual/findPage',
        method: 'post',
        data
    })
}


// 根据用户名查找
export const findByName = (params) => {
    return axios({
        url: '/busIntellectual/findByName',
        method: 'get',
        params
    })
}




// 导入
export const importSports = (data) => {
  return axios({
      url: '/busIntellectual/importSports',
      method: 'post',
      data
  })
}


// 导出
export const exportSports = (data) => {
  return axios({
      url: '/busIntellectual/exportSports',
      method: 'post',
      data:data,
      responseType: 'blob'
  })
}


// 计算
export const calculationSports = (data) => {
  return axios({
      url: '/busIntellectual/calculationSports',
      method: 'post',
      data
  })
}



// 清空
export const resetSports = (data) => {
  return axios({
      url: '/busIntellectual/resetSports',
      method: 'post',
      data
  })
}



// 分页查询待办
export const findPageTo = (data) => {
  return axios({
      url: '/busIntellectual/findPageTo',
      method: 'post',
      data:data
  })
}
